package com.doitedu.day03.funcs

import scala.collection.immutable

/**
 * @Date 22.6.22
 * @Created by HANGGE
 * @Description
 */
object _02Map方法 {
  def main(args: Array[String]): Unit = {

    val mp = Map[String, Int]("ZSS" -> 100, "LSS" -> 99)

/*
    val res: Map[String, Int] = mp.map(tp => {
      val k = tp._1
      val v = tp._2
      (k.toLowerCase, v + 1)
    })
*/
    val tuples: immutable.Iterable[(String, Int, String)] = mp.map(tp => {
      (tp._1.toLowerCase, tp._2 + 1, "hello")
    })


  }

}
